load("@rules_python//python:defs.bzl", "py_binary")
load("//bazel:cc_binary_with_flags.bzl", "cc_binary_with_flags")
load("//bazel:macros.bzl", "exports_files_legacy")

licenses(["notice"])

exports_files_legacy()

cc_binary_with_flags(
    name = "bazel_test_exe",
    srcs = [
        "bazel_test.cpp",
    ],
    set_flags = {
        "enable_svg_canvas": ["True"],
    },
    deps = [
        "//:skia_public",
        "@libpng",
    ],
)

py_binary(
    name = "print_os",
    srcs = ["print_os.py"],
)

genrule(
    name = "generate_file",
    srcs = [],
    outs = [
        "some_file.txt",
    ],
    cmd = "$(location :print_os) $@",
    tools = [":print_os"],
)

cc_binary(
    name = "skia_with_pathops",
    srcs = ["pathop_main.cpp"],
    features = ["layering_check"],
    deps = [
        "//:core",
        "//:default_logging",
        "//:default_malloc",
        "//:pathops",
    ],
)
